﻿namespace Com.Lancetinc.Evs.Data
{
    /// <summary>
    /// 查询项
    /// </summary>
    public class SqlCondItem
    {
        /// <summary>
        /// 查询的列名称
        /// </summary>
        public readonly string Name;

        /// <summary>
        /// 操作符。等于(=)、大于(&gt;)、小于(&lt;)、不小于(&gt;=)、不大于(&lt;=)、包含(like)
        /// </summary>
        public readonly string Operator;

        /// <summary>
        /// 查找条件值
        /// </summary>
        public readonly object Value;

        public SqlCondItem(string name, object value, string aOperator = "=")
        {
            this.Name = name;
            this.Value = value;
            this.Operator = aOperator;
        }
    }
}
